package com.gitee.fantaros.web.fan.netcut.mapper;

import com.gitee.fantaros.web.fan.netcut.bean.PasterInfo;
import com.vaadin.flow.spring.annotation.SpringComponent;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
@SpringComponent
@SuppressWarnings("unused")
public interface PasterMapper {

    void createPasterInfoTable();

    PasterInfo queryInfoById(@Param("pasterName") String pasterName);
    List<PasterInfo> selectList();

    int checkExists(@Param("pasterName") String pasterName);
    int checkPasswd(@Param("pasterName") String pasterName, @Param("passwd") String passwd);

    void insertOne(@Param("bean") PasterInfo bean);
    void updateContent(@Param("bean") PasterInfo bean);

}
